<!-- 首页的内容 -->
{{ define "base/base_indexInfo.html" }}
    <div class="navbar_con">
        <div class="navbar">
            <h1 class="fl">全部商品分类</h1>
            <ul class="navlist fl">
                <li><a href="/ttsx/index">首页</a></li>
                <li class="interval">|</li>
                <li><a href="">手机生鲜</a></li>
                <li class="interval">|</li>
                <li><a href="">抽奖</a></li>
            </ul>
        </div>
    </div>

    <div class="center_con clearfix">
        <ul class="subnav fl">
            {{ range .GoodsTypeList }}
                <li><a href="/ttsx/goods/list/{{ .ID }}/1?sort=default" class="{{ .Logo }}">{{ .Name }}</a></li>
            {{ end }}
        </ul>
        <div class="slide fl">
            <ul class="slide_pics">
                {{ range .GoodsLoopList }}
                    <li><img src="{{ .Image }}" alt="幻灯片"></li>
                {{ end }}
            </ul>
            <div class="prev"></div>
            <div class="next"></div>
            <ul class="points"></ul>
        </div>
        <div class="adv fl">
            {{ range .GoodsPromoList }} 
                <a href="{{ .Url }}"><img src="{{ .Image }}" alt=""></a>
            {{ end }}
        </div>
    </div>

    {{ range $i, $v := .Goods }}
        <div class="list_model">
            <div class="list_title clearfix">
                <h3 class="fl" id="model0{{ $i }}">{{ $v.typeName }}</h3>
                <div class="subtitle fl">
                    <span>|</span>
                    {{ range $v.textGoods }}
                        <a href="/ttsx/goods/detail?id={{ .goods_sku_id }}">{{ .name }}</a>
                    {{ end }}
                </div>
                <a href="/ttsx/goods/list/{{ $i }}/1?sort=default" class="goods_more fr" id="fruit_more">查看更多 ></a>
            </div>

            <div class="goods_con clearfix">
                <div class="goods_banner fl"><img src="{{ $v.typeImage }}"></div>
                <ul class="goods_list fl">
                    {{ range $v.imageGoods }}
                        <li>
                            <h4><a href="/ttsx/goods/detail?id={{ .goods_sku_id }}">{{.name }}</a></h4>
                            <a href="/ttsx/goods/detail?id={{ .goods_sku_id }}"><img src="{{ .image  }}"></a>
                            <div class="prize">¥ {{ .price }}</div>
                        </li>
                    {{ end }}
                </ul>
            </div>
        </div>
    {{ end }}

{{ end }}